/*
 * @Author: wangyu
 * @Date: 2025-01-17 16:38:03
 * @LastEditTime: 2025-01-17 17:39:29
 * @LastEditors: wangyu
 * @Description: 
 * @FilePath: \my-project\types\index.ts
 */
export interface Item {
  id: number
  url?: string
  title?: string
  type: 'job' | 'story' | 'comment' | 'poll'
  points: number
  user: string
  content?: string
  time: string
  comments_count?: number
  comments?: Item[]
  loading?: boolean
}

export interface User {
  id: string
  created_time: string
  karma: number
  about: string
  loading?: boolean
}


export interface CustomResponse <T>{
  "msg": string,
  "code": number,
  "data":Array<T>|Object
}
